home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / GNU Diff Sources / GNU DIFF 1.15b Sources / stat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-13  |  616 b   |  31 lines  |  [TEXT/ALFA]

  1.  
  2. struct    stat
  3.     {
  4.     long    st_ino;
  5.     int    st_dev;
  6.     time_t    st_mtime;
  7.     long    st_size;
  8.     long    st_mode;    /* These are a bunch of flags about the file */
  9.     };
  10.  
  11. #define    S_IFMT    3    /* Mask for file "format" */
  12. #define    S_IFDIR    1    /* This is one of the st_mode flags */
  13. #define    S_IFREG    0    /* If (st_mode & S_IFMT) == S_IFREG, it is a regular file. */
  14. #define    S_IFSTREAM    2    /* Standard input */
  15.  
  16. struct direct {
  17.     char d_name[32];
  18. };
  19.  
  20. typedef struct _dir {
  21.     short    vRefNum;
  22.     long    dirID;
  23.     int totalCount;
  24.     int    currCount;
  25.     struct direct current;
  26. } DIR;
  27.  
  28. int fstat (int fd, struct stat *theStat);
  29. int stat (char *fileName, struct stat *theStat);
  30.  
  31.